package com.fjec.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 003.角色表
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
@TableName("sys_role")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 应用类型
     */
    @TableField("AppType")
    private Long appType;

    /**
     * 角色编码
     */
    @TableField("RoleCode")
    private String roleCode;

    /**
     * 角色名称
     */
    @TableField("RoleName")
    private String roleName;

    /**
     * 角色描述
     */
    @TableField("RoleDesc")
    private String roleDesc;

    /**
     * 是否是默认角色 默认角色不允许删除
0=否
1=是
     */
    @TableField("DefRole")
    private Integer defRole;

    /**
     * 删除标记 0=否
1=是
     */
    @TableField("DelFlag")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getAppType() {
        return appType;
    }

    public void setAppType(Long appType) {
        this.appType = appType;
    }
    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }
    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }
    public Integer getDefRole() {
        return defRole;
    }

    public void setDefRole(Integer defRole) {
        this.defRole = defRole;
    }
    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SysRole{" +
            "id=" + id +
            ", appType=" + appType +
            ", roleCode=" + roleCode +
            ", roleName=" + roleName +
            ", roleDesc=" + roleDesc +
            ", defRole=" + defRole +
            ", delFlag=" + delFlag +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
